package org.qingke.mail.user.service.config;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/** 
 * Mybatis 映射器配置文件
 */
@Configuration
@AutoConfigureAfter(value={SpringBootMybatisConfig.class})// 标注在加载完成SpringBootMybatisConfig配置类后再加载该类
public class MybatisMapperConfig {
	
	@Bean
	public MapperScannerConfigurer getMapperScannerConfigurer(){
		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
		mapperScannerConfigurer.setBasePackage("org.qingke.mail.mapper");
		return mapperScannerConfigurer;
	} 

}
